package com.leejxx.provider.dao;

import com.leejxx.common.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author LeeJx
 * @ClassName UserDao
 * @Description TODO
 * @date 2021/2/9 20:16
 * @Version 1.0
 */
public interface UserDao {
    User findUserByUserId(Integer id);

    User findByUsername(String username);

    List<String> findAllUsernames();

    void registerUser(@Param("username") String username, @Param("password") String password, @Param("phoneNumber") String phoneNumber);

    String findUserNameByPhoneNumber(@Param("phoneNumber") String phoneNumber);

    List<String> findAllPhoneNumber();
}
